<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
  <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
  <link rel="stylesheet" href="./lib/zepto/zepto.min.js">
  <link rel="stylesheet" href="./css/common.css">
  <!-- <link rel="stylesheet" href="./css/search.css"> -->
  <link rel="stylesheet" href="./css/product.css">
</head>

<body>
  <div class="lt-containner">
    <!-- 头部 -->
    <div class="lt-thead">
      <div class="home mui-pull-left">
        <a href="index.html"><i class="mui-icon mui-icon-back"></i></a>
      </div>
      <h4>商品详情</h4>
      <div class="search  mui-pull-right">
        <a href=""><i class="mui-icon mui-icon-reload"></i></a>

      </div>
    </div>
    <!-- 内容 -->
    <div class="lt-main">
      <div class="mui-scroll-wrapper">
        <div class="mui-scroll">
          <!--这里放置真实显示的DOM内容-->
          <!------------------- 轮播图-------------------------- -->

        </div>
      </div>
    </div>
    <!-- 底部 -->
    <div class="lt-tfroot">
      <a href="#">前往购物车</a>
      <button class="mui mui-btn-warning">买买买</button>
      <button class="mui mui-btn-danger btn-cart">加入购物车</button>

    </div>
  </div>
<!-- 模板引擎 -->
  <script type='text/html' id='tmp'>

    <div class="mui-slider">
        <div class="mui-slider-group mui-slider-loop">
          <!--支持循环，需要重复图片节点-->
          
          <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[pic.length-1].picAddr}}"></a>
          </div>
          {{ each pic v i }}
          <div class="mui-slider-item"><a href="#"><img src="{{v.picAddr}}"></a></div>
         {{ /each }}

          <!--支持循环，需要重复图片节点-->
          <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{pic[0].picAddr}}"></a>
          </div>

        </div>
        <!-- 小圆点 -->
        <div class="mui-slider-indicator">
          <!-- <div class="mui-indicator mui-active"></div> -->
          {{ each pic v i }}
          <div class="mui-indicator i == 0 ? mui-active : '' "></div>
          {{ /each }}
        </div>
      </div>
      <!-- 类容 -->
      <div class="product-mian">
        <p>{{proName}}</p>
      </div>
      <!-- 价格 -->
      <div class="lt-cost">
        <span>价格 :</span>
        <span>￥{{price}}</span>
        <span>￥{{oldPrice}}</span>
      </div>
      <!-- 尺码 ------------------>
      <div class="lt-size">
        尺码 :
        
          <%
          var size = size.split('-')
          var first = size[0]
          var last = size[1]
          %>
          <% for( var i = first;i < last;i++ ) {%>
            <span>{{i}}</span>
            <%}%>
        
      </div>
        <span>数量 :</span>
        <div class="mui-numbox" data-numbox-step='1' data-numbox-min='1' data-numbox-max='100'>
          <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
          <input class="mui-numbox-input btn-num" type="number" />
          <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
        </div>
        <span>剩余数量{{num}}</span>
      </div>
      <div class="particulars">
        <span>详情 :</span>
        <span>{{proDesc}}</span>
      </div>
    
  </script>

  <script type='text/html' id='tmp'>
  {{each rows v i}}

  {{/each}}
</script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./js/common.js"></script>
  <script src="./js/product.js"></script>
</body>

</html>